#import <UIKit/UIKit.h>

@interface UIView (SH)

@property (nonatomic) CGFloat x;
@property (nonatomic) CGFloat y;
@property (nonatomic) CGPoint origin;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat height;
@property (nonatomic) CGFloat top;
@property (nonatomic) CGFloat bottom;
@property (nonatomic) CGFloat left;
@property (nonatomic) CGFloat right;
@property (nonatomic) CGFloat centerX;
@property (nonatomic) CGFloat centerY;
@property (nonatomic) CGSize  size;

/**
 view对应的Controller, 可能为空
 */
@property (nonatomic, nullable, readonly) UIViewController *viewController;

/**
 将当前视图转成图片
 */
@property (nonatomic, copy, nullable, readonly) UIImage *snapshotImage;

/**
 重用ID，一般用于UITableViewCell或UICollectionCell
 */
@property (class, nonatomic, copy, nonnull, readonly) NSString *reuseIdentifier;

///
@property (nonatomic, strong, nullable) IBInspectable UIColor *borderColor;
@property (nonatomic, assign) IBInspectable CGFloat borderWidth;
@property (nonatomic, assign) IBInspectable CGFloat cornerRadius;


@end
